<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        p:nth-child(odd){
            background: red;
        }
    </style>
</head>
<body>
    <div class="table">
        <p>1</p>
        <p>
        <h1 class="small">2</h1>
        </p>
        <p>
        <h2 class="small">3</h2>
        </p>
        <p>4</p>
        <p><h2>5</h2></p>
        <p>6</p>
    </div>


</body>
</html>